//
//  Extension.swift
//  LPStretchableHeaderView
//
//  Created by Tony on 2017/8/24.
//  Copyright © 2017年 Tony. All rights reserved.
//

import UIKit


//行情页面相关
//状态栏高
let STATUSBAR_HEIGHT:CGFloat = 20
//导航栏高
let NAVIGATIONBAR_HEIGHT:CGFloat = 44
let TOP_AND_BOTTOM_MARGIN:CGFloat = 26
//指数区域总高度
let INDEXSPACEHEIGHT:CGFloat = 130
let INDEXLABEL_Y:CGFloat = NAVIGATIONBAR_HEIGHT+TOP_AND_BOTTOM_MARGIN+STATUSBAR_HEIGHT
let INDEXLABEL_HEIGHT:CGFloat = 16
let INDEXLABEL_FONT:CGFloat = 16
let INDEXLABEL_EDGEMARGIN:CGFloat = 35
let INDEXLABEL_MIDDLEMARGIN:CGFloat = 58
let INDEXLABEL_WIDTH:CGFloat = (SCREEN_WIDTH-INDEXLABEL_EDGEMARGIN*2-INDEXLABEL_MIDDLEMARGIN*2)/3
//上证指数相关
let SSECOMPOSITEINDEXLABEL_X:CGFloat = INDEXLABEL_EDGEMARGIN
let SSECOMPOSITEINDEXLABEL_Y:CGFloat = INDEXLABEL_Y
let SSECOMPOSITEINDEXLABEL_HEIGHT:CGFloat = INDEXLABEL_HEIGHT
let SSECOMPOSITEINDEXLABEL_FONT:CGFloat = INDEXLABEL_FONT
//深证指数相关
let SZSECOMPONENTINDEXLABEL_X:CGFloat = SSECOMPOSITEINDEXLABEL_X+INDEXLABEL_WIDTH+INDEXLABEL_MIDDLEMARGIN
let SZSECOMPONENTINDEXLABEL_Y:CGFloat = INDEXLABEL_Y
let SZSECOMPONENTINDEXLABEL_HEIGHT:CGFloat = INDEXLABEL_HEIGHT
let SZSECOMPONENTINDEXLABEL_FONT:CGFloat = INDEXLABEL_FONT
//中小板指数相关
let SMALLANDMEDIUMENTERPRISEBOARDINDEXLABEL_X:CGFloat = SZSECOMPONENTINDEXLABEL_X+INDEXLABEL_WIDTH+INDEXLABEL_MIDDLEMARGIN
let SMALLANDMEDIUMENTERPRISEBOARDINDEXLABEL_Y:CGFloat = INDEXLABEL_Y
let SMALLANDMEDIUMENTERPRISEBOARDINDEXLABEL_HEIGHT:CGFloat = INDEXLABEL_HEIGHT
let SMALLANDMEDIUMENTERPRISEBOARDINDEXLABEL_FONT:CGFloat = INDEXLABEL_FONT
//数字标签相关
let INDEXNUMBERLABEL_EDGEMARGIN:CGFloat = 38
let INDEXNUMBERLABEL_MIDDLEMARGIN:CGFloat = 63
let INDEXNUMBERLABEL_HEIGHT:CGFloat = 15
let INDEXNUMBERLABEL_WIDTH:CGFloat = 60
let INDEXNUMBERLABEL_FONT:CGFloat = 15
let MARGIN_BETWEEN_INDEXLABEL_AND_INDEXNUMBERLABEL:CGFloat  = 20
let INDEXNUMBERLABEL_Y:CGFloat = INDEXLABEL_Y+INDEXNUMBERLABEL_HEIGHT+MARGIN_BETWEEN_INDEXLABEL_AND_INDEXNUMBERLABEL
//上证数字相关
let SSECOMPOSITEINDEXNUMBERLABEL_X:CGFloat = INDEXLABEL_EDGEMARGIN
let SSECOMPOSITEINDEXNUMBERLABEL_Y:CGFloat = INDEXNUMBERLABEL_Y
let SSECOMPOSITEINDEXNUMBERLABEL_HEIGHT:CGFloat = INDEXNUMBERLABEL_HEIGHT
let SSECOMPOSITEINDEXNUMBERLABEL_FONT:CGFloat = INDEXNUMBERLABEL_FONT
//深证数字相关
let SZSECOMPONENTINDEXNUMBERLABEL_X:CGFloat = SSECOMPOSITEINDEXNUMBERLABEL_X+INDEXNUMBERLABEL_WIDTH+INDEXNUMBERLABEL_MIDDLEMARGIN
let SZSECOMPONENTINDEXNUMBERLABEL_Y:CGFloat = INDEXNUMBERLABEL_Y
let SZSECOMPONENTINDEXNUMBERLABEL_HEIGHT:CGFloat = INDEXNUMBERLABEL_HEIGHT
let SZSECOMPONENTINDEXNUMBERLABEL_FONT:CGFloat = INDEXNUMBERLABEL_FONT
//中小板指数数字相关
let SMALLANDMEDIUMENTERPRISEBOARDINDEXNUMBERLABEL_X:CGFloat = SZSECOMPONENTINDEXNUMBERLABEL_X+INDEXNUMBERLABEL_WIDTH+INDEXNUMBERLABEL_MIDDLEMARGIN
let SMALLANDMEDIUMENTERPRISEBOARDINDEXNUMBERLABEL_Y:CGFloat = INDEXNUMBERLABEL_Y
let SMALLANDMEDIUMENTERPRISEBOARDINDEXNUMBERLABEL_HEIGHT:CGFloat = INDEXNUMBERLABEL_HEIGHT
let SMALLANDMEDIUMENTERPRISEBOARDINDEXNUMBERLABEL_FONT:CGFloat = INDEXNUMBERLABEL_FONT
//涨跌幅百分比相关
let PERCENTNUMBERLABEL_EDGEMARGIN:CGFloat = 20
let PERCENTNUMBERLABEL_HEIGHT:CGFloat = 14
let PERCENTNUMBERLABEL_FONT:CGFloat = 14
let PERCENTNUMBERLABEL_WIDTH:CGFloat = (SCREEN_WIDTH-PERCENTNUMBERLABEL_EDGEMARGIN*2-MARGIN_BETWEEN_INCREASEPERCENTLABEL_AND_NEXTDROPPERCENTLABEL*2-MARGIN_BETWEEN_DROPPERCENTLABEL_AND_INCREASEPERCENTLABEL*3)/6
let MARGIN_BETWEEN_DROPPERCENTLABEL_AND_INCREASEPERCENTLABEL:CGFloat  = 10
let MARGIN_BETWEEN_INCREASEPERCENTLABEL_AND_NEXTDROPPERCENTLABEL:CGFloat  = 30
let MARGIN_BETWEEN_INDEXNUMBERLABEL_AND_PERCENTNUMBERLABEL:CGFloat  = 13
let PERCENTNUMBERLABEL_Y:CGFloat = INDEXNUMBERLABEL_Y+INDEXNUMBERLABEL_HEIGHT+MARGIN_BETWEEN_INDEXNUMBERLABEL_AND_PERCENTNUMBERLABEL
//上证跌幅百分比相关
let SSECOMPOSITEINDEXDROPPERCENTNUMBERLABEL_X:CGFloat = PERCENTNUMBERLABEL_EDGEMARGIN
let SSECOMPOSITEINDEXDROPPERCENTNUMBERLABEL_Y:CGFloat = PERCENTNUMBERLABEL_Y
let SSECOMPOSITEINDEXDROPPERCENTNUMBERLABEL_HEIGHT:CGFloat = PERCENTNUMBERLABEL_HEIGHT
let SSECOMPOSITEINDEXDROPPERCENTNUMBERLABEL_FONT:CGFloat = PERCENTNUMBERLABEL_FONT
//上证涨幅百分比相关
let SSECOMPOSITEINDEXINCREASEPERCENTNUMBERLABEL_X:CGFloat = SSECOMPOSITEINDEXDROPPERCENTNUMBERLABEL_X+PERCENTNUMBERLABEL_WIDTH+MARGIN_BETWEEN_DROPPERCENTLABEL_AND_INCREASEPERCENTLABEL
let SSECOMPOSITEINDEXINCREASEPERCENTNUMBERLABEL_Y:CGFloat = PERCENTNUMBERLABEL_Y
let SSECOMPOSITEINDEXINCREASEPERCENTNUMBERLABEL_HEIGHT:CGFloat = PERCENTNUMBERLABEL_HEIGHT
let SSECOMPOSITEINDEXINCREASEPERCENTNUMBERLABEL_FONT:CGFloat = PERCENTNUMBERLABEL_FONT
//深证跌幅百分比相关
let SZSECOMPONENTINDEXDROPPERCENTNUMBERLABEL_X:CGFloat = SSECOMPOSITEINDEXINCREASEPERCENTNUMBERLABEL_X+PERCENTNUMBERLABEL_WIDTH+MARGIN_BETWEEN_INCREASEPERCENTLABEL_AND_NEXTDROPPERCENTLABEL
let SZSECOMPONENTINDEXDROPPERCENTNUMBERLABEL_Y:CGFloat = PERCENTNUMBERLABEL_Y
let SZSECOMPONENTINDEXDROPPERCENTNUMBERLABEL_HEIGHT:CGFloat = PERCENTNUMBERLABEL_HEIGHT
let SZSECOMPONENTINDEXDROPPERCENTNUMBERLABEL_FONT:CGFloat = PERCENTNUMBERLABEL_FONT
//深证涨幅百分比相关
let SZSECOMPONENTINDEXINCREASEPERCENTNUMBERLABEL_X:CGFloat = SZSECOMPONENTINDEXDROPPERCENTNUMBERLABEL_X+PERCENTNUMBERLABEL_WIDTH+MARGIN_BETWEEN_DROPPERCENTLABEL_AND_INCREASEPERCENTLABEL
let SZSECOMPONENTINDEXINCREASEPERCENTNUMBERLABEL_Y:CGFloat = PERCENTNUMBERLABEL_Y
let SZSECOMPONENTINDEXINCREASEPERCENTNUMBERLABEL_HEIGHT:CGFloat = PERCENTNUMBERLABEL_HEIGHT
let SZSECOMPONENTINDEXINCREASEPERCENTNUMBERLABEL_FONT:CGFloat = PERCENTNUMBERLABEL_FONT
//中小板指数跌幅百分比相关
let SMALLANDMEDIUMENTERPRISEBOARDINDEXDROPPERCENTNUMBERLABEL_X:CGFloat = SZSECOMPONENTINDEXINCREASEPERCENTNUMBERLABEL_X+PERCENTNUMBERLABEL_WIDTH+MARGIN_BETWEEN_INCREASEPERCENTLABEL_AND_NEXTDROPPERCENTLABEL
let SMALLANDMEDIUMENTERPRISEBOARDINDEXDROPPERCENTNUMBERLABEL_Y:CGFloat = PERCENTNUMBERLABEL_Y
let SMALLANDMEDIUMENTERPRISEBOARDINDEXDROPPERCENTNUMBERLABEL_HEIGHT:CGFloat = PERCENTNUMBERLABEL_HEIGHT
let SMALLANDMEDIUMENTERPRISEBOARDINDEXDROPPERCENTNUMBERLABEL_FONT:CGFloat = PERCENTNUMBERLABEL_FONT
//中小板指数涨幅百分比相关
let SMALLANDMEDIUMENTERPRISEBOARDINDEXINCREASEPERCENTNUMBERLABEL_X:CGFloat = SMALLANDMEDIUMENTERPRISEBOARDINDEXDROPPERCENTNUMBERLABEL_X+PERCENTNUMBERLABEL_WIDTH+MARGIN_BETWEEN_DROPPERCENTLABEL_AND_INCREASEPERCENTLABEL
let SMALLANDMEDIUMENTERPRISEBOARDINDEXINCREASEPERCENTNUMBERLABEL_Y:CGFloat = PERCENTNUMBERLABEL_Y
let SMALLANDMEDIUMENTERPRISEBOARDINDEXINCREASEPERCENTNUMBERLABEL_HEIGHT:CGFloat = PERCENTNUMBERLABEL_HEIGHT
let SMALLANDMEDIUMENTERPRISEBOARDINDEXINCREASEPERCENTNUMBERLABEL_FONT:CGFloat = PERCENTNUMBERLABEL_FONT
//底部可变视图的 Y
let MUTABLEVIEW_Y:CGFloat = STATUSBAR_HEIGHT+NAVIGATIONBAR_HEIGHT+INDEXSPACEHEIGHT
let MUTABLEVIEW_HEIGHT:CGFloat = SCREEN_HEIGHT-MUTABLEVIEW_Y
